import Mock from 'mockjs'

export default [

  //获取员工
  {
    url: '/user/getPageList',
    type: 'get',
    response: _ => {
      return {
        code : 20000,
        data : {
          pageSize : 10,
          currentPage : 1,
          totalPages : 3,
          totalCount : 30,
          list : Mock.mock({
            'list|10-20' : [{
              id : '@id',
              "realName": "@cname",
              "account": "",
              "mobile": "",
              "accountStatus": "",
              "roleNames|1":["技术部",'销售部','后勤部','人事部','市场部'],
              "head": "",
              "password": "",
              "passworde": "",
              "email": "",
              "sex": "",
              "entryTime": "",
              "userNO": "@id",
              "position": "",
              "qq": "",
              "thirdUserId": "",
              "dingdingId": "",
              "nativePlace": "",
              "userBrithday": "",
              "address": "",
              "contactName": "",
              "relation": "",
              "phone": ""

            }]
          }).list
        },
        msg : "请求成功"
      }
    }
  }

]